home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1996 May / Software of the Month Club 1996 May.iso / mac / ISO9660 / ZIPFILES / BMPWIZ.ZIP / BRI_SAT.BAS < prev    next >
Unknown  |  1994-12-30  |  658 b 

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert GW-BASIC (document/gwBasic) ext Supported
66% dexvert GFA-BASIC Atari (other/gfaBASICAtari) ext Supported
1% dexvert Amiga BASIC Protected File (other/amigaBASICProtectedFile) ext Unsupported
1% dexvert BAS VBDOS Pro 1.0 Source (other/basVBDOSPro10Source) ext Unsupported
1% dexvert Visual Basic Tokenized Source (other/visualBasicTokenizedSource) ext Unsupported
1% dexvert ZBASIC (other/zbasic) ext Unsupported
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 8e 02 00 00 0d 0a 27 20 | 4d 6f 64 69 66 79 20 73 |......' |Modify s|
|00000010| 61 74 75 72 61 74 69 6f | 6e 0d 0a 0d 0a 0d 0a 73 |aturatio|n......s|
|00000020| 74 72 69 6e 67 09 69 6e | 70 46 69 6c 65 0d 0a 44 |tring.in|pFile..D|
|00000030| 65 76 43 6f 6e 09 49 62 | 6d 70 2c 4f 62 6d 70 0d |evCon.Ib|mp,Obmp.|
|00000040| 0a 52 47 42 09 70 69 78 | 0d 0a 48 42 53 20 20 20 |.RGB.pix|..HBS |
|00000050| 20 20 20 20 20 20 70 69 | 78 65 6c 0d 0a 66 6c 6f | pi|xel..flo|
|00000060| 61 74 20 20 09 78 2c 79 | 2c 63 2c 6d 78 2c 6d 69 |at .x,y|,c,mx,mi|
|00000070| 0d 0a 0d 0a 49 62 6d 70 | 3d 4c 6f 61 64 49 6d 61 |....Ibmp|=LoadIma|
|00000080| 67 65 28 22 74 65 73 74 | 69 2e 62 6d 70 22 29 0d |ge("test|i.bmp").|
|00000090| 0a 50 72 65 76 69 65 77 | 28 49 62 6d 70 2c 22 49 |.Preview|(Ibmp,"I|
|000000a0| 6e 70 75 74 22 2c 30 2c | 30 29 0d 0a 4f 62 6d 70 |nput",0,|0)..Obmp|
|000000b0| 3d 43 72 65 61 74 65 49 | 6d 61 67 65 28 49 62 6d |=CreateI|mage(Ibm|
|000000c0| 70 2e 57 69 64 74 68 2c | 49 62 6d 70 2e 48 65 69 |p.Width,|Ibmp.Hei|
|000000d0| 67 68 74 2c 32 34 29 20 | 0d 0a 0d 0a 46 6f 72 20 |ght,24) |....For |
|000000e0| 79 3d 30 20 74 6f 20 49 | 62 6d 70 2e 48 65 69 67 |y=0 to I|bmp.Heig|
|000000f0| 68 74 2d 31 0d 0a 20 20 | 20 46 6f 72 20 78 3d 30 |ht-1.. | For x=0|
|00000100| 20 74 6f 20 49 62 6d 70 | 2e 57 69 64 74 68 2d 31 | to Ibmp|.Width-1|
|00000110| 0d 0a 0d 0a 20 20 20 20 | 20 20 70 69 78 65 6c 3d |.... | pixel=|
|00000120| 47 65 74 50 69 78 65 6c | 28 49 62 6d 70 2c 78 2c |GetPixel|(Ibmp,x,|
|00000130| 79 29 09 09 27 20 67 65 | 74 20 69 6e 70 75 74 20 |y)..' ge|t input |
|00000140| 69 6d 61 67 65 20 70 69 | 78 65 6c 0d 0a 20 20 20 |image pi|xel.. |
|00000150| 20 20 20 70 69 78 65 6c | 2e 53 61 74 3d 70 69 78 | pixel|.Sat=pix|
|00000160| 65 6c 2e 53 61 74 2a 2e | 37 0d 0a 20 20 20 20 20 |el.Sat*.|7.. |
|00000170| 20 27 70 69 78 65 6c 2e | 42 72 69 3d 70 69 78 65 | 'pixel.|Bri=pixe|
|00000180| 6c 2e 42 72 69 2a 2e 38 | 2b 34 38 09 09 27 20 6f |l.Bri*.8|+48..' o|
|00000190| 6d 69 74 20 52 45 4d 20 | 63 68 61 72 20 74 6f 20 |mit REM |char to |
|000001a0| 6d 6f 64 69 66 79 20 62 | 72 69 67 68 74 0d 0a 20 |modify b|right.. |
|000001b0| 20 20 20 20 20 70 69 78 | 3d 70 69 78 65 6c 0d 0a | pix|=pixel..|
|000001c0| 20 20 20 20 20 20 53 65 | 74 50 69 78 65 6c 28 4f | Se|tPixel(O|
|000001d0| 62 6d 70 2c 78 2c 79 2c | 70 69 78 29 0d 0a 20 20 |bmp,x,y,|pix).. |
|000001e0| 20 4e 65 78 74 20 78 0d | 0a 20 20 20 69 66 28 79 | Next x.|. if(y|
|000001f0| 25 31 30 3d 30 29 0d 0a | 20 20 20 20 20 20 50 72 |%10=0)..| Pr|
|00000200| 65 76 69 65 77 28 4f 62 | 6d 70 2c 22 4d 6f 64 69 |eview(Ob|mp,"Modi|
|00000210| 66 79 20 73 61 74 75 72 | 61 74 69 6f 6e 22 2c 33 |fy satur|ation",3|
|00000220| 34 30 2c 30 29 0d 0a 20 | 20 20 65 6e 64 69 66 0d |40,0).. | endif.|
|00000230| 0a 4e 65 78 74 20 79 0d | 0a 50 72 65 76 69 65 77 |.Next y.|.Preview|
|00000240| 28 4f 62 6d 70 2c 22 4f | 75 74 70 75 74 22 2c 33 |(Obmp,"O|utput",3|
|00000250| 34 30 2c 30 29 0d 0a 44 | 73 70 57 68 69 6c 65 28 |40,0)..D|spWhile(|
|00000260| 22 22 2c 30 29 0d 0a 27 | 53 61 76 65 49 6d 61 67 |"",0)..'|SaveImag|
|00000270| 65 28 49 62 6d 70 2c 22 | 74 65 73 74 6f 2e 62 6d |e(Ibmp,"|testo.bm|
|00000280| 70 22 29 0d 0a 44 73 70 | 4d 65 73 28 22 45 6e 64 |p")..Dsp|Mes("End|
|00000290| 22 29 | |") | |
+--------+-------------------------+-------------------------+--------+--------+